home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / LPC / ed3 < prev    next >
Text File  |  2001-04-06  |  840b  |  31 lines

  1. NAME
  2.         ed3
  3.  
  4. DESCRIPTION
  5.         Searching is done with:
  6.         /hello/
  7.         Find first line in of after current line.
  8.         Just // will repeat the search.
  9.  
  10.         The patterns are regular expressions, where some characters
  11.         have a special meaning:
  12.         .        Match any character.
  13.         x*        Match any numbers of x (0 or more).
  14.         [abc]        Match 'a', 'b' or 'c'.
  15.         [0-9]        Match any digit 0 - 9.
  16.         [a-z]        Match any lowercase letter.
  17.         \x        Match 'x' where 'x' can be any character except '('
  18.                 and ')'.
  19.  
  20. EXAMPLE
  21.         s/ab.d/ABCD/
  22.         Substitute any string 'abXd' against 'ABCD' where X can be any
  23.         character.
  24.  
  25. NOTE
  26.         This only half the truth, there is lots more magic in the
  27.         regexps.
  28.  
  29. SEE ALSO
  30.         regexp(E), ed4(LPC)
  31.